package com.example.birdfriends.pojo.post;

import com.example.birdfriends.pojo.user.User;

import java.util.Arrays;
import java.util.List;

public class PostsAndAuthors {
    private List<PostFront> postList;
    private List<User> postAuthorList;
    private Long totalPostNumber;
    private List<String> words;

    public void printPostsAndAuthors() {
        System.out.println("print posts and authors");
        for(PostFront post: postList){
            post.printPost();
        }
        for(User author: postAuthorList){
            author.printUser();
        }
        System.out.println(totalPostNumber);
    }

    public void setWords(List<String> words) {
        this.words = words;
    }

    public List<String> getWords() {
        return words;
    }

    public void setTotalPostNumber(Long totalPostNumber) {
        this.totalPostNumber = totalPostNumber;
    }

    public Long getTotalPostNumber() {
        return totalPostNumber;
    }

    public void setPostList(List<PostFront> postList) {
        this.postList = postList;
    }

    public void setPostAuthorList(List<User> postAuthorList) {
        this.postAuthorList = postAuthorList;
    }

    public List<PostFront> getPostList() {
        return postList;
    }

    public List<User> getPostAuthorList() {
        return postAuthorList;
    }
}
